package config

var SysConfig *Config

type Config struct {
	Default DefaultOptions `mapstructure:"default"`
	Users   UsersOptions   `mapstructure:"users"`
}

type DefaultOptions struct {
	ListenAddr          string `mapstructure:"listenAddr"`
	WebSocketListenAddr string `mapstructure:"webSocketListenAddr"`
	ExpireTime          int    `mapstructure:"expireTime"`
}

type UsersOptions struct {
	Username string `mapstructure:"username"`
	Password string `mapstructure:"password"`
	Secret   string `mapstructure:"secret"`
}
